-- GENERATED SPELL FOR [Warlord Zim'bo] --


function spell0_26544(pUnit, Event) --@Skull Crack,n/a--
pUnit:FullCastSpellOnTarget(3551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26544', 2325, 1)
end

function spell1_26544(pUnit, Event) --@Warlord Roar,Self--
pUnit:FullCastSpellOnTarget(52283,pUnit)
pUnit:RegisterEvent('Sorts_26544', 667, 1)
end

function Sorts_26544(pUnit, Event)
local choix_sorts_26544 = math.random(0, 1)
if choix_sorts_26544 == 0 then
pUnit:RegisterEvent('spell0_26544', 1, 1)
end
if choix_sorts_26544 == 1 then
pUnit:RegisterEvent('spell1_26544', 1, 1)
end
end

function mob26544_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26544', math.random(1500, 3000), 1)
end

function mob26544_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26544_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26544_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26544, 1, 'mob26544_Action')
RegisterUnitEvent(26544, 2, 'mob26544_Leave')
RegisterUnitEvent(26544, 3, 'mob26544_Kill')
RegisterUnitEvent(26544, 4, 'mob26544_Die')
